package adv324;

/**
 * @author oldliu
 * @since 1.0
 */
public class StrTest5 {
    public static void main(String[] args) {
        //%d %s %f
        int age=24;
        String name="老刘";
        char sex='男';
        String phone="1393929392";
        String s = String.format("老刘的个人信息如下：name:%s,年龄 %d,%c，手机号是%s", name, age, sex, phone);
        System.out.println(s);
    }
}
